package mmc.server.shell.ops.baseops;

import mmc.server.shell.*;
import mmc.server.shell.ops.Operation;
import mmc.server.shell.ops.PriorityType;

public class Pow extends Operation {
    
    public Pow(String text) throws ShellException {
        super(text, "^", true, true);
    }

    @Override
    public double execute() {
        return Math.pow(lValue.execute(), rValue.execute());
    }
    
    public static PriorityType getPriorityType() {
        return PriorityType.POINT;
    }
    
    public static String getDescription(){
    	return formatHelpString("^","pow");
    }
}
